<?php 
		$links=Episode::model()->findAll(
    			array(
    				'condition'=>'t.eid = '.$data->id,
    			)
    	);
?>
<div class="episodeview">
	<label><?php echo $data->name;?></label>
	<?php foreach($links as $link):?>
		<a title="<?php echo $link->name;?>" data="<?php echo $data->en_name.$link->link;?>" class="link"><?php echo $link->name;?></a>
	<?php endforeach;?>
</div> 